<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>FLV 视频播放</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
        }
        video {
            width: 100%;
            max-width: 800px;
            height: auto;
            margin-top: 20px;
        }
    </style>
</head>
<body>
<h1>FLV 视频播放</h1>
<video id="videoElement" controls></video>

<script src="https://cdn.jsdelivr.net/npm/flv.js@latest"></script>
<script>
    // 检查浏览器是否支持 flv.js
    if (flvjs.isSupported()) {
        var videoElement = document.getElementById('videoElement');
        var flvPlayer = flvjs.createPlayer({
            type: 'flv',
            url: '\t\n' +
                'https://flv.cloud.xstrive.com/475537b187d31432d017ae3c43ea7698/hlsram/live0/faa2ed62d431f1dfd861b2c85786a2d0.flv'
        });
        flvPlayer.attachMediaElement(videoElement);
        flvPlayer.load();
        flvPlayer.play();
    } else {
        alert('您的浏览器不支持播放 FLV 视频，请使用支持 FLV 播放的浏览器。');
    }
</script>
</body>
</html>
